<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" th:attr="content=${keywords}" />
<meta name="Description" th:attr="content=${description}" />
<!-- TemplateBeginEditable name="doctitle" -->
<title></title>
<!-- TemplateEndEditable --><!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="style.css" rel="stylesheet" type="text/css" />

<!-- auto replace start-->
<script type="text/javascript" src="/static/js/common.js"></script>
<script type="text/javascript" src="/static/js/shopping_flow.js"></script>
<!-- auto replace end-->
</head>
<body>
<div th:replace="common/tpls/page_header_tpl::page_header"></div>
<!--当前位置 start-->

  <div th:replace="common/tpls/ur_here_tpl::ur_here"></div>

 
<div class="block table">
  <!-- {if $step eq "cart"} -->

  <!-- 购物车内容 -->
  
  <!-- auto replace start-->
<script type="text/javascript" src="/static/js/showdiv.js"></script>
<!-- auto replace end-->
  <script type="text/javascript">
  {foreach from=$lang.password_js item=item key=key}
    var  = "";
  {/foreach}
  </script>
  <div class="flowBox">
    <h6><span></span></h6>
        <form id="formCart" name="formCart" method="post" action="flow.php">
           <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
            <tr>
              <th bgcolor="#ffffff"></th>
      <!-- {if $show_goods_attribute eq 1} 显示商品属性 -->
              <th bgcolor="#ffffff"></th>
              <!-- {/if} -->
              <!-- {if $show_marketprice} 显示市场价 -->
              <th bgcolor="#ffffff"></th>
              <!-- {/if} -->
              <th bgcolor="#ffffff"></th>
              <th bgcolor="#ffffff"></th>
              <th bgcolor="#ffffff"></th>
              <th bgcolor="#ffffff"></th>
            </tr>
            <!-- {foreach from=$goods_list item=goods} -->
            <tr>
              <td bgcolor="#ffffff" align="center" style="width:300px;">
                <!-- {if $goods.goods_id gt 0 && $goods.extension_code neq 'package_buy'} 商品 -->
                  <!-- {if $show_goods_thumb eq 1} -->
                    <a href="goods.html?id=" target="_blank" class="f6"></a>
                  <!-- {elseif $show_goods_thumb eq 2} -->
                    <a href="goods.html?id=" target="_blank"><img style="width:80px; height:80px;" th:src="${goods.goods_thumb}" border="0" th:attr="title=${goods.goods_name}" /></a>
                  <!-- {else} -->
                    <a href="goods.html?id=" target="_blank"><img style="width:80px; height:80px;" th:src="${goods.goods_thumb}" border="0" th:attr="title=${goods.goods_name}" /></a><br />
                    <a href="goods.html?id=" target="_blank" class="f6"></a>
                  <!-- {/if} -->
                  <!-- {if $goods.parent_id gt 0} 配件 -->
                  <span style="color:#FF0000">（）</span>
                  <!-- {/if} -->
                  <!-- {if $goods.is_gift gt 0} 赠品 -->
                  <span style="color:#FF0000">（）</span>
                  <!-- {/if} -->
                <!-- {elseif $goods.goods_id gt 0 && $goods.extension_code eq 'package_buy'} -->
                  <a href="javascript:void(0)" onclick="setSuitShow()" class="f6"><span style="color:#FF0000;">（）</span></a>
                  <div id="suit_" style="display:none">
                      <!-- {foreach from=$goods.package_goods_list item=package_goods_list} -->
                        <a href="goods.html?id=" target="_blank" class="f6"></a><br />
                      <!-- {/foreach} -->
                  </div>
                <!-- {else} 优惠活动 -->
                  
                <!-- {/if} -->
              </td>
              <!-- {if $show_goods_attribute eq 1} 显示商品属性 -->
              <td bgcolor="#ffffff"></td>
              <!-- {/if} -->
              <!-- {if $show_marketprice} 显示市场价 -->
              <td align="center" bgcolor="#ffffff"></td>
              <!-- {/if} -->
              <td align="center" bgcolor="#ffffff"></td>
              <td align="center" bgcolor="#ffffff">
                <!-- {if $goods.goods_id gt 0 && $goods.is_gift eq 0 && $goods.parent_id eq 0} 普通商品可修改数量 -->
                <input type="text" name="goods_number[]" id="goods_number_" value="" size="4" class="inputBg" style="text-align:center " onkeydown="showdiv(this)"/>
                <!-- {else} -->
                
                <!-- {/if} -->
              </td>
              <td align="center" bgcolor="#ffffff"></td>
              <td align="center" bgcolor="#ffffff">
                <a href="javascript:if (confirm('')) location.href='flow.html?step=drop_goods&amp;id='; " class="f6"></a>
                <!-- {if $smarty.session.user_id gt 0 && $goods.extension_code neq 'package_buy'} 如果登录了，可以加入收藏 -->
                <a href="javascript:if (confirm('')) location.href='flow.html?step=drop_to_collect&amp;id='; " class="f6"></a>
                <!-- {/if} -->            </td>
            </tr>
            <!-- {/foreach} -->
          </table>
          <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
            <tr>
              <td bgcolor="#ffffff">
              <!-- {if $discount gt 0} --><br /><!-- {/if} -->
              <!-- {if $show_marketprice} -->，<!-- {/if} -->
              </td>
              <td align="right" bgcolor="#ffffff">
                <input type="button" value="" class="bnt_blue_1" onclick="location.href='flow.php?step=clear'" />
                <input name="submit" type="submit" class="bnt_blue_1" value="" />
              </td>
            </tr>
          </table>
          <input type="hidden" name="step" value="update_cart" />
        </form>
        <table width="99%" align="center" border="0" cellpadding="5" cellspacing="0" bgcolor="#dddddd">
          <tr>
            <td bgcolor="#ffffff"><a href="./"><img src="/static/images/continue.gif" alt="continue" /></a></td>
            <td bgcolor="#ffffff" align="right"><a href="flow.html?step=checkout"><img src="/static/images/checkout.gif" alt="checkout" /></a></td>
          </tr>
        </table>
       <!-- {if $smarty.session.user_id gt 0} -->
       <!-- auto replace start-->
<script type="text/javascript" src="/static/js/transport_jquery.js"></script>
<!-- auto replace end-->
       <script type="text/javascript" charset="utf-8">
        function collect_to_flow(goodsId)
        {
          var goods        = new Object();
          var spec_arr     = new Array();
          var fittings_arr = new Array();
          var number       = 1;
          goods.spec     = spec_arr;
          goods.goods_id = goodsId;
          goods.number   = number;
          goods.parent   = 0;
          Ajax.call('flow.php?step=add_to_cart', 'goods=' + $.toJSON(goods), collect_to_flow_response, 'POST', 'JSON');
        }
        function collect_to_flow_response(result)
        {
          if (result.error > 0)
          {
            // 如果需要缺货登记，跳转
            if (result.error == 2)
            {
              if (confirm(result.message))
              {
                location.href = 'user.php?act=add_booking&id=' + result.goods_id;
              }
            }
            else if (result.error == 6)
            {
              openSpeDiv(result.message, result.goods_id);
            }
            else
            {
              alert(result.message);
            }
          }
          else
          {
            location.href = 'flow.php';
          }
        }
      </script>


  
  <!-- {/if} -->
</div>
    <div class="blank"></div>
  <!-- {if $collection_goods} -->
  <div class="flowBox">
    <h6><span></span></h6>
    <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
      <!-- {foreach from=$collection_goods item=goods} -->
          <tr>
            <td bgcolor="#ffffff"><a href="goods.html?id=" class="f6"></a></td>
            <td bgcolor="#ffffff" align="center" width="100"><a href="javascript:addToCart()" class="f6"></a></td>
          </tr>
      <!-- {/foreach} -->
        </table> 
        </div>
      <!-- {/if} -->
 
    <div class="blank5"></div>
  <!-- {/if} -->

  <!-- {if $fittings_list} 商品配件 -->
  <!-- auto replace start-->
<script type="text/javascript" src="/static/js/transport_jquery.js"></script>
<!-- auto replace end-->
  <script type="text/javascript" charset="utf-8">
  function fittings_to_flow(goodsId,parentId)
  {
    var goods        = new Object();
    var spec_arr     = new Array();
    var number       = 1;
    goods.spec     = spec_arr;
    goods.goods_id = goodsId;
    goods.number   = number;
    goods.parent   = parentId;
    Ajax.call('flow.php?step=add_to_cart', 'goods=' + $.toJSON(goods), fittings_to_flow_response, 'POST', 'JSON');
  }
  function fittings_to_flow_response(result)
  {
    if (result.error > 0)
    {
      // 如果需要缺货登记，跳转
      if (result.error == 2)
      {
        if (confirm(result.message))
        {
          location.href = 'user.php?act=add_booking&id=' + result.goods_id;
        }
      }
      else if (result.error == 6)
      {
        openSpeDiv(result.message, result.goods_id, result.parent);
      }
      else
      {
        alert(result.message);
      }
    }
    else
    {
      location.href = 'flow.php';
    }
  }
  </script>


  <div class="block" >
    <div class="flowBox">
    <h6><span></span></h6>
    <form action="flow.php" method="post">
        <div class="flowGoodsFittings clearfix"  style="padding:5px;">
          <!-- {foreach from=$fittings_list item=fittings} -->
            <ul class="clearfix" style="height:320px;">
              <li class="goodsimg">
                <a th:href="${fittings.url}" target="_blank"><img th:src="${fittings.goods_thumb}" th:attr="alt=${fittings.name}" class="B_blue" /></a>
              </li>
              <li>
                <p><a th:href="${fittings.url}" target="_blank" th:attr="title=${fittings.goods_name}" class=" "></a></p>
                <font class="f1"></font><br />
               
                <a href="javascript:fittings_to_flow(,)"><img src="/static/images/bnt_buy.gif" th:attr="alt=${lang.collect_to_flow}" /></a>
              </li>
            </ul>
          <!-- {/foreach} 循环商品配件结束 -->
        </div>
    </form>
    </div>
  </div>
  <div class="blank5"></div>
  <!-- {/if} -->

  <!-- {if $favourable_list} 优惠活动 -->
  <div class="block">
    <div class="flowBox">
    <h6><span></span></h6>
        <!-- {foreach from=$favourable_list item=favourable} -->
        <form action="flow.php" method="post">
          <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
            <tr>
              <td align="right" bgcolor="#ffffff"></td>
              <td bgcolor="#ffffff"><strong></strong></td>
            </tr>
            <tr>
              <td align="right" bgcolor="#ffffff"></td>
              <td bgcolor="#ffffff"> --- </td>
            </tr>
            <tr>
              <td align="right" bgcolor="#ffffff"></td>
              <td bgcolor="#ffffff">{$lang.far_ext[$favourable.act_range]}<br />
              </td>
            </tr>
            <tr>
              <td align="right" bgcolor="#ffffff"></td>
              <td bgcolor="#ffffff"> --- </td>
            </tr>
            <tr>
              <td align="right" bgcolor="#ffffff"></td>
              <td bgcolor="#ffffff">
                <span class="STYLE1"></span>
                <!-- {if $favourable.act_type eq 0} -->
                <!-- {foreach from=$favourable.gift item=gift} --><br />
                  <input type="checkbox" value="" name="gift[]" />
                  <a href="goods.html?id=" target="_blank" class="f6"></a> []
                <!-- {/foreach} -->
              <!-- {/if} -->          </td>
            </tr>
            <!-- {if $favourable.available} -->
            <tr>
              <td align="right" bgcolor="#ffffff">&nbsp;</td>
              <td align="center" bgcolor="#ffffff"><input type="image"  alt="加入购物车"  border="0" / style="background:#f6827a; color:#FFF; border:none"></td>
            </tr>
            <!-- {/if} -->
          </table>
          <input type="hidden" name="act_id" value="" />
          <input type="hidden" name="step" value="add_favourable" />
        </form>
        <!-- {/foreach} 循环赠品活动结束 -->
  </div>
  </div>
  <!-- {/if} -->


        <!-- {if $step eq "consignee"} -->
        <!-- 开始收货人信息填写界面 -->

        <!-- auto replace start-->
<script type="text/javascript" src="/static/js/region.js"></script>
<script type="text/javascript" src="/static/js/utils.js"></script>
<!-- auto replace end-->
        <script type="text/javascript">
          region.isAdmin = false;
          {foreach from=$lang.flow_js item=item key=key}
          var  = "";
          {/foreach}

          {literal}
          onload = function() {
            if (!document.all)
            {
              document.forms['theForm'].reset();
            }
          }
          {/literal}
        </script>
        <!-- 如果有收货地址，循环显示用户的收获地址 -->
        <!-- {foreach from=$consignee_list item=consignee key=sn} -->
        <form action="flow.php" method="post" name="theForm" id="theForm" onsubmit="return checkConsignee(this)">
        <!-- #BeginLibraryItem "/Library/consignee.lbi" --><!-- #EndLibraryItem -->
        </form>
        <!-- {/foreach} -->
        <!-- {/if} -->

        <!-- {if $step eq "checkout"} 开始订单确认界面 -->

        <form action="flow.php" method="post" name="theForm" id="theForm" onsubmit="return checkOrderForm(this)">
        <script type="text/javascript">
        var flow_no_payment = "";
        var flow_no_shipping = "";
        </script>
        <div class="flowBox">
        <h6><span></span><!--{if $allow_edit_cart} --><a href="flow.html" class="f6"></a><!--{/if} --></h6>
        <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
            <tr>
              <th bgcolor="#ffffff"></th>
              <th bgcolor="#ffffff"></th>
              <!-- {if $show_marketprice} -->
              <th bgcolor="#ffffff"></th>
              <!-- {/if} -->
              <th bgcolor="#ffffff">{if $gb_deposit}{else}{/if}</th>
              <th bgcolor="#ffffff"></th>
              <th bgcolor="#ffffff"></th>
            </tr>
            <!-- {foreach from=$goods_list item=goods} -->

            <tr>
              <td bgcolor="#ffffff">
              <!-- {if $goods.goods_id gt 0 && $goods.extension_code eq 'package_buy'} -->
	      <a href="javascript:void(0)" onclick="setSuitShow()" class="f6"><span style="color:#FF0000;">（）</span></a>
	      <div id="suit_" style="display:none">
	          <!-- {foreach from=$goods.package_goods_list item=package_goods_list} -->
		    <a href="goods.html?id=" target="_blank" class="f6"></a><br />
	          <!-- {/foreach} -->
	      </div>
	      <!-- { else } -->
	      <a href="goods.html?id=" target="_blank" class="f6"></a>
                <!-- {if $goods.parent_id > 0} -->
                <span style="color:#FF0000">（）</span>
               <!-- {elseif $goods.is_gift} -->
                <span style="color:#FF0000">（）</span>
                <!-- {/if} -->
          <!-- {/if} -->
          <!-- {if $goods.is_shipping} -->(<span style="color:#FF0000"></span>)<!-- {/if} -->
              </td>

              <td bgcolor="#ffffff"></td>
              <!-- {if $show_marketprice} -->
              <td align="right" bgcolor="#ffffff"></td>
              <!-- {/if} -->
              <td bgcolor="#ffffff" align="right"></td>
              <td bgcolor="#ffffff" align="right"></td>
              <td bgcolor="#ffffff" align="right"></td>
            </tr>
            <!-- {/foreach} -->
            <!-- {if !$gb_deposit} 团购且有保证金时不显示 -->
            <tr>
              <td bgcolor="#ffffff" colspan="7">
              <!-- {if $discount gt 0} --><br /><!-- {/if} -->
              <!-- {if $show_marketprice} -->，<!--{/if}-->
              </td>
            </tr>
            <!-- {/if} -->
          </table>
      </div>
      <div class="blank"></div>
      <div class="flowBox">
      <h6><span></span><a href="flow.html?step=consignee" class="f6"></a></h6>
      <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
            <tr>
              <td bgcolor="#ffffff">:</td>
              <td bgcolor="#ffffff"></td>
              <td bgcolor="#ffffff">:</td>
              <td bgcolor="#ffffff"></td>
            </tr>
            <!-- {if $total.real_goods_count gt 0} -->
            <tr>
              <td bgcolor="#ffffff">:</td>
              <td bgcolor="#ffffff"> </td>
              <td bgcolor="#ffffff">:</td>
              <td bgcolor="#ffffff"></td>
            </tr>
            <!-- {/if} -->
            <tr>
              <td bgcolor="#ffffff">:</td>
              <td bgcolor="#ffffff"> </td>
              <td bgcolor="#ffffff">:</td>
              <td bgcolor="#ffffff"></td>
            </tr>
             <!-- {if $total.real_goods_count gt 0} -->
            <tr>
              <td bgcolor="#ffffff">:</td>
              <td bgcolor="#ffffff"> </td>
              <td bgcolor="#ffffff">:</td>
              <td bgcolor="#ffffff"></td>
            </tr>
            <!-- {/if} -->
          </table>
      </div>
     <div class="blank"></div>
    <!--{if $total.real_goods_count neq 0}-->
    <div class="flowBox">
    <h6><span></span></h6>
    <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="shippingTable">
            <tr>
              <th bgcolor="#ffffff" width="5%">&nbsp;</th>
              <th bgcolor="#ffffff" width="25%"></th>
              <th bgcolor="#ffffff"></th>
              <th bgcolor="#ffffff" width="15%"></th>
              <th bgcolor="#ffffff" width="15%"></th>
              <th bgcolor="#ffffff" width="15%"></th>
            </tr>
            <!-- {foreach from=$shipping_list item=shipping} 循环配送方式 -->
            <tr>
              <td bgcolor="#ffffff" valign="top"><input name="shipping" type="radio" value="" {if $order.shipping_id eq $shipping.shipping_id}checked="true"{/if} supportCod="" insure="" onclick="selectShipping(this)" />
              </td>
              <td bgcolor="#ffffff" valign="top"><strong></strong></td>
              <td bgcolor="#ffffff" valign="top"></td>
              <td bgcolor="#ffffff" align="right" valign="top"></td>
              <td bgcolor="#ffffff" align="right" valign="top"></td>
              <td bgcolor="#ffffff" align="right" valign="top">{if $shipping.insure neq 0}{else}{/if}</td>
            </tr>
            <!-- {/foreach} 循环配送方式 -->
            <tr>
              <td colspan="6" bgcolor="#ffffff" align="right"><label for="ECS_NEEDINSURE">
                <input name="need_insure" id="ECS_NEEDINSURE" type="checkbox"  onclick="selectInsure(this.checked)" value="1" {if $order.need_insure}checked="true"{/if} {if $insure_disabled}disabled="true"{/if}  />
                 </label></td>
            </tr>
          </table>
    </div>
    <div class="blank"></div>
        <!--{else}-->
        <input name = "shipping" type="radio" value = "-1" checked="checked"  style="display:none"/>
        <!--{/if}-->
    <!--{if $is_exchange_goods neq 1 || $total.real_goods_count neq 0}-->
    <div class="flowBox">
    <h6><span></span></h6>
    <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="paymentTable">
            <tr>
              <th width="5%" bgcolor="#ffffff">&nbsp;</th>
              <th width="20%" bgcolor="#ffffff"></th>
              <th bgcolor="#ffffff"></th>
              <th bgcolor="#ffffff" width="15%"></th>
            </tr>
            <!-- {foreach from=$payment_list item=payment} -->
            <!-- 循环支付方式 -->
            <tr>
              <td valign="top" bgcolor="#ffffff"><input type="radio" name="payment" value="" {if $order.pay_id eq $payment.pay_id}checked{/if} isCod="" onclick="selectPayment(this)" {if $cod_disabled and $payment.is_cod eq "1"}disabled="true"{/if}/></td>
              <td valign="top" bgcolor="#ffffff"><strong></strong></td>
              <td valign="top" bgcolor="#ffffff"></td>
              <td align="right" bgcolor="#ffffff" valign="top"></td>
            </tr>
            <!-- {/foreach} 循环支付方式 -->
          </table>
    </div>
    <!--{else}-->
        <input name = "payment" type="radio" value = "-1" checked="checked"  style="display:none"/>
    <!--{/if}-->
    <div class="blank"></div>
          <!-- {if $pack_list} 是否有包装 -->
          <div class="flowBox">
          <h6><span></span></h6>
          <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="packTable">
            <tr>
              <th width="5%" scope="col" bgcolor="#ffffff">&nbsp;</th>
              <th width="35%" scope="col" bgcolor="#ffffff"></th>
              <th width="22%" scope="col" bgcolor="#ffffff"></th>
              <th width="22%" scope="col" bgcolor="#ffffff"></th>
              <th scope="col" bgcolor="#ffffff"></th>
            </tr>
            <tr>
              <td valign="top" bgcolor="#ffffff"><input type="radio" name="pack" value="0" {if $order.pack_id eq 0}checked="true"{/if} onclick="selectPack(this)" /></td>
              <td valign="top" bgcolor="#ffffff"><strong></strong></td>
              <td valign="top" bgcolor="#ffffff">&nbsp;</td>
              <td valign="top" bgcolor="#ffffff">&nbsp;</td>
              <td valign="top" bgcolor="#ffffff">&nbsp;</td>
            </tr>
            <!-- {foreach from=$pack_list item=pack} 循环包装 -->
            <tr>
              <td valign="top" bgcolor="#ffffff"><input type="radio" name="pack" value="" {if $order.pack_id eq $pack.pack_id}checked="true"{/if} onclick="selectPack(this)" />
              </td>
              <td valign="top" bgcolor="#ffffff"><strong></strong></td>
              <td valign="top" bgcolor="#ffffff" align="right"></td>
              <td valign="top" bgcolor="#ffffff" align="right"></td>
              <td valign="top" bgcolor="#ffffff" align="center">
                  <!-- {if $pack.pack_img} 是否有图片 -->
                  <a href="data/packimg/" target="_blank" class="f6"></a>
                  <!-- {else} -->
                  
                  <!-- {/if} -->
               </td>
            </tr>
            <!-- {/foreach} 循环包装 -->
          </table>
       </div>
             <div class="blank"></div>
          <!-- {/if} 是否使用包装 -->

          <!-- {if $card_list} 是否有贺卡 -->
          <div class="flowBox">
          <h6><span></span></h6>
          <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="cardTable">
            <tr>
              <th bgcolor="#ffffff" width="5%" scope="col">&nbsp;</th>
              <th bgcolor="#ffffff" width="35%" scope="col"></th>
              <th bgcolor="#ffffff" width="22%" scope="col"></th>
              <th bgcolor="#ffffff" width="22%" scope="col"></th>
              <th bgcolor="#ffffff" scope="col"></th>
            </tr>
            <tr>
              <td bgcolor="#ffffff" valign="top"><input type="radio" name="card" value="0" {if $order.card_id eq 0}checked="true"{/if} onclick="selectCard(this)" /></td>
              <td bgcolor="#ffffff" valign="top"><strong></strong></td>
              <td bgcolor="#ffffff" valign="top">&nbsp;</td>
              <td bgcolor="#ffffff" valign="top">&nbsp;</td>
              <td bgcolor="#ffffff" valign="top">&nbsp;</td>
            </tr>
            <!-- {foreach from=$card_list item=card} 循环贺卡 -->
            <tr>
              <td valign="top" bgcolor="#ffffff"><input type="radio" name="card" value="" {if $order.card_id eq $card.card_id}checked="true"{/if} onclick="selectCard(this)"  />
              </td>
              <td valign="top" bgcolor="#ffffff"><strong></strong></td>
              <td valign="top" align="right" bgcolor="#ffffff"></td>
              <td valign="top" align="right" bgcolor="#ffffff"></td>
              <td valign="top" align="center" bgcolor="#ffffff">
                  <!-- {if $card.card_img} 是否有图片 -->
                  <a href="data/cardimg/" target="_blank" class="f6"></a>
                  <!-- {else} -->
                  
                  <!-- {/if} -->
                </td>
            </tr>
            <!-- {/foreach} 循环贺卡 -->
            <tr>
              <td bgcolor="#ffffff"></td>
              <td bgcolor="#ffffff" valign="top"><strong>:</strong></td>
              <td bgcolor="#ffffff" colspan="3"><textarea name="card_message" cols="60" rows="3" style="width:auto; border:1px solid #ccc;"></textarea></td>
            </tr>
          </table>
        </div>
                <div class="blank"></div>
        <!-- {/if} 是否使用贺卡 -->


      <div class="flowBox">
    <h6><span></span></h6>
      <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
            <!-- {if $allow_use_surplus} 是否使用余额 -->
            <tr>
              <td width="20%" bgcolor="#ffffff"><strong>: </strong></td>
              <td bgcolor="#ffffff"><input name="surplus" type="text" class="inputBg" id="ECS_SURPLUS" size="10" value="" onblur="changeSurplus(this.value)" {if $disable_surplus}disabled="disabled"{/if} />
               <span id="ECS_SURPLUS_NOTICE" class="notice"></span></td>
            </tr>
            <!-- {/if} 是否使用余额 -->
            <!-- {if $allow_use_integral} 是否使用积分 -->
            <tr>
              <td bgcolor="#ffffff"><strong></strong></td>
              <td bgcolor="#ffffff"><input name="integral" type="text" class="input" id="ECS_INTEGRAL" onblur="changeIntegral(this.value)" value="" size="10" />
              : ，  . <span id="ECS_INTEGRAL_NOTICE" class="notice"></span></td>
            </tr>
            <!-- {/if} 是否使用积分 -->
            <!-- {if $allow_use_bonus} 是否使用红包 -->
            <tr>
              <td bgcolor="#ffffff"><strong>:</strong></td>
              <td bgcolor="#ffffff">
                
                <select name="bonus" onchange="changeBonus(this.value)" id="ECS_BONUS" style="border:1px solid #ccc;">
                  <option value="0" {if $order.bonus_id eq 0}selected{/if}></option>
                  <!-- {foreach from=$bonus_list item=bonus} -->
                  <option value="" {if $order.bonus_id eq $bonus.bonus_id}selected{/if}>[]</option>
                  <!-- {/foreach} -->
                </select>

                
               <input name="bonus_sn" type="text" class="inputBg" size="15" value=""/> 

                <input name="validate_bonus" type="button" class="bnt_blue_1" value="" onclick="validateBonus(document.forms['theForm'].elements['bonus_sn'].value)" style=" " />
              </td>
            </tr>
            <!-- {/if} 是否使用红包 --> 
            <!-- {if $inv_content_list} 能否开发票 -->
            <tr>
              <td bgcolor="#ffffff"><strong>:</strong>
                <input name="need_inv" type="checkbox"  class="input" id="ECS_NEEDINV" onclick="changeNeedInv()" value="1" {if $order.need_inv}checked="true"{/if} />
              </td>
              <td bgcolor="#ffffff">
                <!-- {if $inv_type_list} -->
                
                <select name="inv_type" id="ECS_INVTYPE" {if $order.need_inv neq 1}disabled="true"{/if} onchange="changeNeedInv()" style="border:1px solid #ccc;">
                {html_options options=$inv_type_list selected=$order.inv_type}</select>
                <!-- {/if} -->
                
                <input name="inv_payee" type="text"  class="input" id="ECS_INVPAYEE" size="20" {if !$order.need_inv}disabled="true"{/if} value="" onblur="changeNeedInv()" />
                
              <select name="inv_content" id="ECS_INVCONTENT" {if $order.need_inv neq 1}disabled="true"{/if}  onchange="changeNeedInv()" style="border:1px solid #ccc;">

                {html_options values=$inv_content_list output=$inv_content_list selected=$order.inv_content}

                </select></td>
            </tr>
            <!-- {/if} -->
            <tr>
              <td valign="top" bgcolor="#ffffff"><strong>:</strong></td>
              <td bgcolor="#ffffff"><textarea name="postscript" cols="80" rows="3" id="postscript" style="border:1px solid #ccc;"></textarea></td>
            </tr>
            <!-- {if $how_oos_list} 是否使用缺货处理 -->
            <tr>
              <td bgcolor="#ffffff"><strong>:</strong></td>
              <td bgcolor="#ffffff"><!-- {foreach from=$how_oos_list key=how_oos_id item=how_oos_name} -->
                <label>
                <input name="how_oos" type="radio" value="" {if $order.how_oos eq $how_oos_id}checked{/if} onclick="changeOOS(this)" />
                </label>
                <!-- {/foreach} -->
              </td>
            </tr>
            <!-- {/if} 缺货处理结束 -->
          </table>
    </div>
    <div class="blank"></div>
    <div class="flowBox">
    <h6><span></span></h6>
          <!-- #BeginLibraryItem "/Library/order_total.lbi" --><!-- #EndLibraryItem -->
           <div align="center" style="margin:8px auto;">
            <input type="image" src="/static/images/bnt_subOrder.gif" />
            <input type="hidden" name="step" value="done" />
            </div>
    </div>
    </form>
        <!-- {/if} -->

        <!-- {if $step eq "done"} -->
        <!-- 订单提交成功 -->

        <div class="flowBox" style="margin:0 auto 70px auto;">
         <h6 style="text-align:center; height:30px; line-height:30px;">: <font style="color:red"></font></h6>
          <table width="99%" align="center" border="0" cellpadding="15" cellspacing="0" bgcolor="#fff" style="border:1px solid #ddd; margin:20px auto;" >
            <tr>
              <td align="center" bgcolor="#FFFFFF">
              <!--{if $order.shipping_name}-->: <strong></strong>，<!--{/if}-->: <strong></strong>。: <strong></strong>
              </td>
            </tr>
            <tr>
              <td align="center" bgcolor="#FFFFFF"></td>
            </tr>
            <!-- {if $pay_online} -->
            <!-- 如果是线上支付则显示支付按钮 -->
            <tr>
              <td align="center" bgcolor="#FFFFFF"></td>
            </tr>
            <!-- {/if} -->
          </table>
          <!--{if $virtual_card}-->
          <div style="text-align:center;overflow:hidden;border:1px solid #E2C822;background:#FFF9D7;margin:10px;padding:10px 50px 30px;">
          <!--{foreach from=$virtual_card item=vgoods}-->
            <h3 style="color:#2359B1; font-size:12px;"></h3>
            <!--{foreach from=$vgoods.info item=card}-->
              <ul style="list-style:none;padding:0;margin:0;clear:both">
              <!--{if $card.card_sn}-->
              <li style="margin-right:50px;float:left;">
              <strong>:</strong><span style="color:red;"></span>
              </li><!--{/if}-->
              <!--{if $card.card_password}-->
              <li style="margin-right:50px;float:left;">
              <strong>:</strong><span style="color:red;"></span>
              </li><!--{/if}-->
              <!--{if $card.end_date}-->
              <li style="float:left;">
              <strong>:</strong>
              </li><!--{/if}-->
              </ul>
            <!--{/foreach}-->
          <!--{/foreach}-->
          </div>
          <!--{/if}-->
          <p style="text-align:center; margin-bottom:20px;"></p>
        </div>
        <!-- {/if} -->
        <!-- {if $step eq "login"} -->
        <!-- auto replace start-->
<script type="text/javascript" src="/static/js/utils.js"></script>
<script type="text/javascript" src="/static/js/user.js"></script>
<!-- auto replace end-->
        <script type="text/javascript">
        {foreach from=$lang.flow_login_register item=item key=key}
          var  = "";
        {/foreach}

        {literal}
        function checkLoginForm(frm) {
          if (Utils.isEmpty(frm.elements['username'].value)) {
            alert(username_not_null);
            return false;
          }

          if (Utils.isEmpty(frm.elements['password'].value)) {
            alert(password_not_null);
            return false;
          }

          return true;
        }

        function checkSignupForm(frm) {
          if (Utils.isEmpty(frm.elements['username'].value)) {
            alert(username_not_null);
            return false;
          }

          if (Utils.trim(frm.elements['username'].value).match(/^\s*$|^c:\\con\\con$|[%,\'\*\"\s\t\<\>\&\\]/))
          {
            alert(username_invalid);
            return false;
          }

          if (Utils.isEmpty(frm.elements['email'].value)) {
            alert(email_not_null);
            return false;
          }

          if (!Utils.isEmail(frm.elements['email'].value)) {
            alert(email_invalid);
            return false;
          }

          if (Utils.isEmpty(frm.elements['password'].value)) {
            alert(password_not_null);
            return false;
          }

          if (frm.elements['password'].value.length < 6) {
            alert(password_lt_six);
            return false;
          }

          if (frm.elements['password'].value != frm.elements['confirm_password'].value) {
            alert(password_not_same);
            return false;
          }
          return true;
        }
        {/literal}
        </script>
        <!-- 开始用户登录注册界面 -->

         <div class="flowBox" style="border:none; border-top:1px solid #ddd">
        <table width="100%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr>
            <td width="50%" valign="top" bgcolor="#ffffff">
            <h6><span>用户登录：</span></h6>
            <form action="flow.php?step=login" method="post" name="loginForm" id="loginForm" onsubmit="return checkLoginForm(this)">
                <table width="90%" border="0" cellpadding="8" cellspacing="0" bgcolor="#B0D8FF" class="table">
                  <tr>
                    <td bgcolor="#ffffff"><div align="right"><strong></strong></div></td>
                    <td bgcolor="#ffffff"><input name="username" type="text" class="inputBg" id="username" /></td>
                  </tr>
                  <tr>
                    <td bgcolor="#ffffff"><div align="right"><strong></strong></div></td>
                    <td bgcolor="#ffffff"><input name="password" class="inputBg" type="password" /></td>
                  </tr>
                 <!-- 判断是否启用验证码{if $enabled_login_captcha} -->
                  <tr>
                    <td bgcolor="#ffffff"><div align="right"><strong>:</strong></div></td>
                    <td bgcolor="#ffffff"><input type="text" size="8" name="captcha" class="inputBg" />
                    <img src="captcha.php?is_login=1&" alt="captcha" style="vertical-align: middle;cursor: pointer;" onClick="this.src='captcha.php?is_login=1&'+Math.random()" /> </td>
                  </tr>
                  <!--{/if}-->
                  <tr>
            <td colspan="2"  bgcolor="#ffffff"><input type="checkbox" value="1" name="remember" id="remember" /><label for="remember"></label></td>
          </tr>
                  <tr>
                    <td bgcolor="#ffffff" colspan="2" align="center"><a href="user.html?act=qpassword_name" class="f6"></a>   <a href="user.html?act=get_password" class="f6"></a></td>
                  </tr>


                  <tr>
                    <td bgcolor="#ffffff" colspan="2"><div align="center">
                        <input type="submit" class="bnt_blue" name="login" value="" />
                        <!-- {if $anonymous_buy eq 1} 是否允许未登录用户购物 -->
                        <input type="button" class="bnt_blue_2" value="" onclick="location.href='flow.php?step=consignee&amp;direct_shopping=1'" />
                        <!-- {/if} -->
                        <input name="act" type="hidden" value="signin" />
                      </div></td>
                  </tr>
                </table>
              </form>

              </td>
            <td valign="top" bgcolor="#ffffff">
            <h6><span>用户注册：</span></h6>
            <form action="flow.php?step=login" method="post" name="formUser" id="registerForm" onsubmit="return checkSignupForm(this)">
               <table width="98%" border="0" cellpadding="8" cellspacing="0" bgcolor="#B0D8FF" class="table">
                  <tr>
                    <td bgcolor="#ffffff" align="right" width="25%"><strong></strong></td>
                    <td bgcolor="#ffffff"><input name="username" type="text" class="inputBg" id="username" onblur="is_registered(this.value);" /><br />
		    <span id="username_notice" style="color:#FF0000"></span></td>
                  </tr>
                  <tr>
                    <td bgcolor="#ffffff" align="right"><strong></strong></td>
                    <td bgcolor="#ffffff"><input name="email" type="text" class="inputBg" id="email" onblur="checkEmail(this.value);" /><br />
		    <span id="email_notice" style="color:#FF0000"></span></td>
                  </tr>
                  <tr>
                    <td bgcolor="#ffffff" align="right"><strong></strong></td>
                    <td bgcolor="#ffffff"><input name="password" class="inputBg" type="password" id="password1" onblur="check_password(this.value);" onkeyup="checkIntensity(this.value)" /><br />
		    <span style="color:#FF0000" id="password_notice"></span></td>
                  </tr>
                  <tr>
                    <td bgcolor="#ffffff" align="right"><strong></strong></td>
                    <td bgcolor="#ffffff"><input name="confirm_password" class="inputBg" type="password" id="confirm_password" onblur="check_conform_password(this.value);" /><br />
		    <span style="color:#FF0000" id="conform_password_notice"></span></td>
                  </tr>
                  <!-- 判断是否启用验证码{if $enabled_register_captcha} -->
                  <tr>
                    <td bgcolor="#ffffff" align="right"><strong>:</strong></td>
                    <td bgcolor="#ffffff"><input type="text" size="8" name="captcha" class="inputBg" />
                    <img src="captcha.php?" alt="captcha" style="vertical-align: middle;cursor: pointer;" onClick="this.src='captcha.php?'+Math.random()" /> </td>
                  </tr>
                  <!--{/if}-->
                  <tr>
                    <td colspan="2" bgcolor="#ffffff" align="center">
                        <input type="submit" name="Submit" class="bnt_blue_1" value="" />
                        <input name="act" type="hidden" value="signup" />
                    </td>
                  </tr>
                </table>
              </form>
              </td>
          </tr>
          {if $need_rechoose_gift}
          <tr>
            <td colspan="2" align="center" style="border-top:1px #ccc solid; padding:5px; color:red;"></td>
          </tr>
          {/if}
        </table>
        </div>
        <!-- 结束用户登录注册界面 -->
        <!-- {/if} -->




</div>

<div th:replace="common/tpls/page_footer_tpl::page_footer"></div>
</body>
<script type="text/javascript">
var process_request = "";
{foreach from=$lang.passport_js item=item key=key}
var  = "";
{/foreach}
var username_exist = "";
var compare_no_goods = "";
var btn_buy = "";
var is_cancel = "";
var select_spe = "";
</script>
</html>
